home *** CD-ROM | disk | FTP | other *** search
- package model
- {
- import flash.events.Event;
- import flash.events.EventDispatcher;
- import flash.events.IEventDispatcher;
- import mx.collections.ArrayCollection;
- import mx.events.PropertyChangeEvent;
-
- public class PresentationModel implements IEventDispatcher
- {
- private var _2064325476spreadString:String = null;
-
- private var _2038622590twoPageBack:Boolean = false;
-
- private var _1959326382yearString:String = null;
-
- private var _1713538862filePrefix:String = null;
-
- private var _711626417monthString:String = null;
-
- private var _bindingEventDispatcher:EventDispatcher;
-
- private var _1287145344pageString:String = null;
-
- private var _601380182currentYear:int = -1;
-
- private var _1448574688currentIssue:int = -1;
-
- private var _859611628imageURL:String = null;
-
- private var _114851798years:ArrayCollection;
-
- private var _601108392currentPage:int = -1;
-
- private var _1903192098numPages:int = -1;
-
- private var _1179159878issues:ArrayCollection;
-
- public function PresentationModel()
- {
- _1903192098numPages = -1;
- _2038622590twoPageBack = false;
- _601380182currentYear = -1;
- _1448574688currentIssue = -1;
- _601108392currentPage = -1;
- _1959326382yearString = null;
- _711626417monthString = null;
- _1287145344pageString = null;
- _2064325476spreadString = null;
- _1713538862filePrefix = null;
- _859611628imageURL = null;
- _bindingEventDispatcher = new EventDispatcher(IEventDispatcher(this));
- super();
- }
-
- [Bindable(event="propertyChange")]
- public function get twoPageBack() : Boolean
- {
- return this._2038622590twoPageBack;
- }
-
- public function hasEventListener(param1:String) : Boolean
- {
- return _bindingEventDispatcher.hasEventListener(param1);
- }
-
- public function set twoPageBack(param1:Boolean) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._2038622590twoPageBack;
- if(_loc2_ !== param1)
- {
- this._2038622590twoPageBack = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"twoPageBack",_loc2_,param1));
- }
- }
-
- public function willTrigger(param1:String) : Boolean
- {
- return _bindingEventDispatcher.willTrigger(param1);
- }
-
- [Bindable(event="propertyChange")]
- public function get pageString() : String
- {
- return this._1287145344pageString;
- }
-
- public function set pageString(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1287145344pageString;
- if(_loc2_ !== param1)
- {
- this._1287145344pageString = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"pageString",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get imageURL() : String
- {
- return this._859611628imageURL;
- }
-
- [Bindable(event="propertyChange")]
- public function get currentPage() : int
- {
- return this._601108392currentPage;
- }
-
- public function set years(param1:ArrayCollection) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._114851798years;
- if(_loc2_ !== param1)
- {
- this._114851798years = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"years",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get monthString() : String
- {
- return this._711626417monthString;
- }
-
- public function set currentYear(param1:int) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._601380182currentYear;
- if(_loc2_ !== param1)
- {
- this._601380182currentYear = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"currentYear",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get yearString() : String
- {
- return this._1959326382yearString;
- }
-
- public function set imageURL(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._859611628imageURL;
- if(_loc2_ !== param1)
- {
- this._859611628imageURL = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"imageURL",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get issues() : ArrayCollection
- {
- return this._1179159878issues;
- }
-
- public function set numPages(param1:int) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1903192098numPages;
- if(_loc2_ !== param1)
- {
- this._1903192098numPages = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"numPages",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get filePrefix() : String
- {
- return this._1713538862filePrefix;
- }
-
- public function set currentIssue(param1:int) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1448574688currentIssue;
- if(_loc2_ !== param1)
- {
- this._1448574688currentIssue = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"currentIssue",_loc2_,param1));
- }
- }
-
- public function set spreadString(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._2064325476spreadString;
- if(_loc2_ !== param1)
- {
- this._2064325476spreadString = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"spreadString",_loc2_,param1));
- }
- }
-
- public function addEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void
- {
- _bindingEventDispatcher.addEventListener(param1,param2,param3,param4,param5);
- }
-
- public function dispatchEvent(param1:Event) : Boolean
- {
- return _bindingEventDispatcher.dispatchEvent(param1);
- }
-
- public function set currentPage(param1:int) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._601108392currentPage;
- if(_loc2_ !== param1)
- {
- this._601108392currentPage = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"currentPage",_loc2_,param1));
- }
- }
-
- public function removeEventListener(param1:String, param2:Function, param3:Boolean = false) : void
- {
- _bindingEventDispatcher.removeEventListener(param1,param2,param3);
- }
-
- [Bindable(event="propertyChange")]
- public function get currentYear() : int
- {
- return this._601380182currentYear;
- }
-
- public function set yearString(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1959326382yearString;
- if(_loc2_ !== param1)
- {
- this._1959326382yearString = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"yearString",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get years() : ArrayCollection
- {
- return this._114851798years;
- }
-
- [Bindable(event="propertyChange")]
- public function get numPages() : int
- {
- return this._1903192098numPages;
- }
-
- [Bindable(event="propertyChange")]
- public function get currentIssue() : int
- {
- return this._1448574688currentIssue;
- }
-
- public function set monthString(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._711626417monthString;
- if(_loc2_ !== param1)
- {
- this._711626417monthString = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"monthString",_loc2_,param1));
- }
- }
-
- public function set filePrefix(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1713538862filePrefix;
- if(_loc2_ !== param1)
- {
- this._1713538862filePrefix = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"filePrefix",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get spreadString() : String
- {
- return this._2064325476spreadString;
- }
-
- public function clone() : PresentationModel
- {
- var _loc1_:PresentationModel = null;
- _loc1_ = new PresentationModel();
- _loc1_.years = years;
- _loc1_.issues = issues;
- _loc1_.numPages = numPages;
- _loc1_.twoPageBack = twoPageBack;
- _loc1_.currentYear = currentYear;
- _loc1_.currentIssue = currentIssue;
- _loc1_.currentPage = currentPage;
- _loc1_.yearString = yearString;
- _loc1_.monthString = monthString;
- _loc1_.spreadString = spreadString;
- _loc1_.filePrefix = filePrefix;
- _loc1_.imageURL = imageURL;
- return _loc1_;
- }
-
- public function set issues(param1:ArrayCollection) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1179159878issues;
- if(_loc2_ !== param1)
- {
- this._1179159878issues = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"issues",_loc2_,param1));
- }
- }
- }
- }
-
-